package com.kanasco.vision.controller;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import bb.access.po.CustomerVendorAddressInfo;
import bb.access.po.Part;

import com.kanasco.vision.model.Sales;
import com.kanasco.vision.service.ISales;

public class PickPaneController implements Controller{

	ISales salesServices;

	public ISales getSalesServices() {
		return salesServices;
	}

	public void setSalesServices(ISales salesServices) {
		this.salesServices = salesServices;
	}

	public ModelAndView handleRequest(HttpServletRequest req,
			HttpServletResponse res) throws Exception 
	{
		System.out.println("This is Picpane cntrlr");
	
		List<CustomerVendorAddressInfo> custList=salesServices.getCustList();
		System.out.println("The size in Pickpane cntrlr"+custList.size());
		return new ModelAndView("PickList","custList",custList);
		
	}

}
